#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "ui_dialog.h"
#include "sdocument.h"

#define DLL_SPEC extern "C" __declspec (dllexport)

DLL_SPEC void PrepareImage();
DLL_SPEC void InitMenu(QMenu* menu,QAction** action,QString& funcName);
DLL_SPEC void InitPointers(ImageDocument* currentDocument);

class Dialog : public QDialog, public Ui::dlgCaoEn {
    Q_OBJECT
public:
    Dialog(QWidget *parent = 0);
    QImage mask;
    QImage img;
    bool PrepareImage(int cellW,int cellH);
private slots:
    void on_pbProcess_clicked();
    void on_pbDraw_clicked();
    void on_pbIterativPrepare_clicked();
};

#endif // DIALOG_H
